<template>
  <div class="featured">
    <SongsTable :whichList="songsStore.List"></SongsTable>
    </div>
</template>

<script setup>
import {useSongsStore} from "@/Store/Pinia/pinia"
import axios from "axios";
import {baseURL} from "@/request/index.js";
import {ref} from "vue";
import SongsTable from "@/components/List/Search/SongsTable";
const songsStore =useSongsStore();
const List=ref([])

const getsingerhot=()=>{
  axios.post(baseURL+"/artist/top/song?id="+songsStore.singerid).then((res) => { //获取歌手热门50首
    console.log(res);
    List.value=res.data.songs;
  })
}
getsingerhot();
</script>

<style scoped>
.featured{
  height: 280px;
}
</style>